package com.opensky.module.sys.interfaces.facade.v1;

import com.opensky.module.sys.application.service.SysDeptService;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 部门表(表sys_dept)Facade门面
 *
 * @author 中国印
 * @date 2021-11-27 21:42:51
 */
@Api(tags = {"部门表Facade扩展"})
@RestController
@RequestMapping("/extend/sysDept")
public class SysDeptFacadeExtend {

    @Resource
    private SysDeptService service;

    /**
     * 扩展接口示例
     *
     * @param frm 请求参数frm对象
     * @return
     */
    @ApiOperationSupport(author = "中国印", order = 10)
    @ApiOperation("1扩展接口示例")
    @PostMapping("/extend")
    public Object extend(@RequestBody @Validated Object frm) {
        // TODO 根据实际业务扩展接口，具体实现可以在service中实现
        return null;
    }

}

